import request from "@/request/request";

/* 获取用户地址信息的接口 */
export const getUserAddressAPI = () => {
    return request({
        url: "/user/userAddress/auth/findUserAddressList",
        method: "GET"
    })
}

/* 获取商品清单的接口 */
export const getOrderInfoAPI = () => {
    return request({
        url: "/order/auth/trade",
        method: "GET"
    })
}

/* 提交订单的接口 */
export const submitOrderAPI = (tradeNo, data) => {
    return request({
        url: "order/auth/submitOrder",
        method:"POST",
        params: {tradeNo},
        data
    })
}
